import request from '@/util/request/request.ts'
/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array)url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
const apiUpload = {}

// 工单附件上传
apiUpload.uploadOrderFile = (data) => request.globalRequest({url:`/mobile/file/annex/order`, method:'POST',data,power:2,isUpload:true,isFiles:false})
// 视频上传
apiUpload.orderVideoUpload = (data) => request.globalRequest({url:`/mobile/file/video/orderVideoUpload`, method:'POST',data,power:2,isUpload:true,isFiles:true})

export default apiUpload